import { request } from "./request";

// 获取bloglist
export function apigetbloglist(data) {
	return request({
		url: "/api/blog/list",
		method: "post",
		data,
	});
}

// 发布blog
export function apipublishblog(data) {
	return request({
		url: "/api/blog/publish",
		method: "post",
		data,
	});
}

// 删除blog
export function apideleteblog(data) {
	return request({
		url: "/api/blog/delete",
		method: "post",
		data,
	});
}

// blog详情
export function apibeforeupdateblog(data) {
	return request({
		url: "/api/blog/beforeupdate",
		method: "post",
		data,
	});
}

// 更新blog
export function apiupdatelog(data) {
	return request({
		url: "/api/blog/update",
		method: "post",
		data,
	});
}
